.PHONY:all
all:mythread optimize

mythread:mythread.cc
	g++ -o $@ $^ -std=c++11 -lpthread

optimize:optimize.cc
	g++ -o $@ $^ -std=c++11 -lpthread

.PHONY:clean
clean:
	rm -rf mythread optimize